Inside Mesh

require.mx('mxjs/mesh/inside-mesh.js');

This is the inside mesh library.

StatusName
insideMesh ( Object settings )

Determines if a point is inside a mesh. Assumes that each subgraph in the mesh is close and cleaned (see clean-mesh.js library). Requires that normals for mesh are already supplied.

  • mesh : mesh-ta object.
  • translation (optional): Translation of the mesh which is applied to points.
  • eventsBegin (optional): Start index .
  • eventsEnd: End index of the events table.
  • readEventLocation : Function for reading the event locations.
  • edgeInside (optional) : Boolean for deciding whether edge points are considered inside.
  • writeInsideCount : Function for writing out the number of surfaces the point is inside.
  • writeEventTransformedLocation (optional) : Function for writing back out the transformed event location.


Library Functions

Lib.insideMesh ( settings )

Determines if a point is inside a mesh. Assumes that each subgraph in the mesh is close and cleaned (see clean-mesh.js library). Requires that normals for mesh are already supplied.

  • mesh : mesh-ta object.
  • translation (optional): Translation of the mesh which is applied to points.
  • eventsBegin (optional): Start index .
  • eventsEnd: End index of the events table.
  • readEventLocation : Function for reading the event locations.
  • edgeInside (optional) : Boolean for deciding whether edge points are considered inside.
  • writeInsideCount : Function for writing out the number of surfaces the point is inside.
  • writeEventTransformedLocation (optional) : Function for writing back out the transformed event location.

Parameters:
  • Object settings - - optional. an object containing configuration with keys/values as described.